import QtQuick 2.12
import QtQuick.Controls 2.5
import FluentUI

FluIconButton {

    property int iconId: 0

    property string toolTip: ""

    property bool isCheckable: false
    property bool isChecked: false

    property int iconWidth: 16
    property int iconHeight: 16

    id: self

    iconSource: iconId

    iconSize: iconWidth

    text: toolTip // 气泡提示框

    background: Rectangle {
        color: self.down || (isCheckable && isChecked) ? "#497563" : "#20E9F4FF"
        radius: 3
    }


    checkable: isCheckable
    checked: isChecked
}
